<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>

    <div></div>
    <div></div>
    <div></div>

    <script>
        let objarr = [{name: "ljw"}, {age: 23}, {gender: "male"}]
        let mergearr = objarr.reduce(function(pre, cur) {
            Object.assign(cur, pre)
            return cur
        }, {})

        // console.log(mergearr)

        let obj = {
            uname: "Ljw",
            x: this,
            func: ()=> {
                console.log(this)
            }
        }

        console.log(obj)
        obj.func()

    </script>
    
</body>
</html>